package com.common.model.view.wechat.applet;

import com.common.util.EmojiFilter;

import java.io.Serializable;
import java.sql.Date;


public class WechatAppletUserInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9049445925375441617L;

	private Integer id;
	private String openId;
	private String nickName;
	private String gender;
	private String city;
	private String province;
	private String country;
	private String avatarUrl;
	private String unionId;
	private String watermark;
	private Date createTime;
	private Date updateTime;

	public WechatAppletUserInfo() {
		super();
	}

	public WechatAppletUserInfo(Integer id, String openId, String nickName, String gender, String city,
			String province, String country, String avatarUrl, String unionId, String watermark, Date createTime,
			Date updateTime) {
		super();
		this.id = id;
		this.openId = openId;
		this.nickName = nickName;
		this.gender = gender;
		this.city = city;
		this.province = province;
		this.country = country;
		this.avatarUrl = avatarUrl;
		this.unionId = unionId;
		this.watermark = watermark;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "WechatAppletUserInfo [id=" + id + ", openId=" + openId + ", nickName=" + nickName
				+ ", gender=" + gender + ", city=" + city + ", province=" + province + ", country=" + country
				+ ", avatarUrl=" + avatarUrl + ", unionId=" + unionId + ", watermark=" + watermark + ", createTime="
				+ createTime + ", updateTime=" + updateTime + "]";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		
		this.nickName = EmojiFilter.filterEmoji(nickName);
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getWatermark() {
		return watermark;
	}

	public void setWatermark(String watermark) {
		this.watermark = watermark;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
